<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="ManageArticles.aspx.vb" Inherits="UpdateArticles" title="Manage Articles" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
   <div class="post">
         <h2 class="title"><span>Pick an Article to Edit</span></h2>
	     <div class="story">	
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
        DataSourceID="ObjectDataSource1" DataKeyNames="ArticleID" CellSpacing="2" HorizontalAlign="Center">
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="ArticleID" DataNavigateUrlFormatString="EditArticle.aspx?ArticleID={0}"
                Text="Edit" />
            <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
            <asp:BoundField DataField="UserID" HeaderText="UserID" SortExpression="UserID" />
            <asp:BoundField DataField="PostDate" HeaderText="PostDate" SortExpression="PostDate" />
            <asp:CommandField ShowDeleteButton="True" />
        </Columns>
    </asp:GridView>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DataObjectTypeName="sk.DAL.Article"
        SelectMethod="GetAllArticles" TypeName="ArticleObj" DeleteMethod="DeleteArticle">
    </asp:ObjectDataSource>
    </div>
    </div>
</asp:Content>

